<!DOCTYPE html>
<html>
<head>



    <template file="Home/meta" />
    <template file="Home/css" />


    <!--<link rel="stylesheet" href="/Statics/Home/css/amazeui.switch.css">-->



</head>
<body>
<template file="Home/search" />

<form method="post" class="am-form  wukuang  form-horizontal J_ajaxForm" action='{:U("")}'>
<div class="am-g  well  common-border-bottom  order-dizhi" id="dizhi">


    <i class="am-icon-map-marker"></i>
    <i class="am-icon-angle-right"></i>
    <div class="am-block am-cf ">

      <span class="am-fl name"> {$default_address.name}</span>

        <span class="am-fr tel">{$default_address.tel}</span>
    </div>
    <div class="am-margin-top-xs ">地址:  <span class="address">{$default_address.xiaoqu} {$default_address.address}</span>
    </div>

    <div class="am-margin-top-xs ">
        提货站:  <span class="shop_id">{$default_address.shop_id|get_shop_name}</span>
    </div>


    <input type="hidden" name="name" value="{$default_address.name}">
    <input type="hidden" name="address" value="{$default_address.xiaoqu} {$default_address.address}">
    <input type="hidden" name="tel" value="{$default_address.tel}">
    <input type="hidden" name="shop_id" value="{$default_address.shop_id}">

</div>


<div class="am-g  well  common-border-bottom common-border-top  am-margin-top-sm  ">




        <div class="  am-g cart-list-item     common-border-bottom am-padding-vertical-sm ">


            <div class=" am-cf am-margin-top-sm am-padding-vertical-xs common-border-bottom">


                <div class="am-u-sm-7  am-padding-left-lg  ">

                    <span class="am-block am-text-333 am-text-lg">{$info.product_name}*{$info.num}</span></span>

                    <span class="am-block am-text-999 am-text-sm ">剩余次数:{$info.cishu}</span>
                </div>








            </div>



        </div>

</div>
        <input type="hidden" name="id" value="{:I('get.id')}">
    <button class="am-btn am-btn-block am-btn-success am-btn-lg ajax-post" target-form="J_ajaxForm"  type="submit">提交</button>



</form>


    <div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top "
         id="">
        <template file="Home/bottom_nav" />
    </div>



<div class="  am-popup am-text-left" tabindex="-1" id="dizhis">
    <div class="am-modal-dialog" style="height: 100%">
        <div class="am-modal-hd ">选择地址
            <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>

        <div class="" style="max-height: 100%; overflow: hidden; overflow-y: auto; padding-bottom: 4em">
        <div class="am-modal-bd am-text-left">

            <volist name="address" id="v">
            <div class="am-g  well    am-margin-bottom-sm ">




                <div class="am-block am-cf am-margin-top-sm am-padding-horizontal-sm">

                    <span>收货人:{$v.name}</span>

                    <span class="am-fr">{$v.tel}</span>
                </div>

                <div class="  am-margin-top-sm am-padding-horizontal-sm">
                    收货地址: {$v.xiaoqu} {$v.address}
                </div>

                <div class=" common-border-bottom am-padding-sm">
                    提货站: {$v.shop_id|get_shop_name}
                </div>


                <div class="am-block am-cf ">


                        <a class="address_do am-btn am-btn-warning am-btn-block" data-id="{$v.id}" data-name="{$v.name}" data-tel="{$v.tel}" data-shop-id="{$v.shop_id}" data-shop-name="{$v.shop_id|get_shop_name}" data-address="{$v.xiaoqu|get_xiaoqu_name} {$v.address}"  >使用</a>




                </div>


            </div>

               </volist>

            <a class="address_do am-btn am-btn-success am-btn-block" href="{:U('User/Address/add',array('order'=>1))}">添加新地址</a>




        </div>


        </div>

     </div>
</div>


    <template file="Home/js" />
    <!--<script src="/Statics/Home/js/amazeui.switch.js"></script>-->
<script>



    $(function(){








    })


</script>








</body>
</html>